<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
    <style>

    </style>
  </head>
  <body>
  
    <div class="container">
     <h1><%= title %></h1>
      <form action="/api/article" method="post" class="form form-horizontal">
        <div class="form-group">
          <label for="" class="col-md-2 label-control">类型</label>
          <div class="col-md-4">
            <select name="type" id="" class="form-control">
              <option value="文章">文章</option>
              <option value="作品">作品</option>
            </select>
          </div>
        </div>
        <div class="form-group">
          <label for="" class="col-md-2 label-control">文章标题</label>
          <div class="col-md-4">
            <input type="text" class="form-control" placeholder="文章标题" name="title">
          </div>
        </div>
        <div class="form-group">
          <label for="" class="col-md-2 label-control">文章简介</label>
          <div class="col-md-4">
            <textarea name="desc" class="form-control" placeholder="文章简介"></textarea>
          </div>
        </div>
        <div class="form-group">
          <label for="" class="col-md-2 label-control">文章链接</label>
          <div class="col-md-4">
            <input type="url" class="form-control" placeholder="文章链接" name="url">
          </div>
        </div>
        <div class="form-group">
          <label for="" class="col-md-2 label-control">推荐等级</label>
          <div class="col-md-4">
            <input type="number" class="form-control" placeholder="推荐等级" name="order">
          </div>
        </div>
        <div class="form-group">
          <div class="col-md-4 col-md-offset-2">
              <button type="submit" class="btn btn-primary">提交</button>
          </div>
        </div>

      </form>
    </div>


  </body>
</html>
